package com.easygo.service.impl;

import com.easygo.mapper.TypeTemplateMapper;
import com.easygo.service.ITypeTemplateService;
import com.xuexi.easygo.pojo.TypeTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TypeTemplateServiceImpl implements ITypeTemplateService {

    @Autowired
    TypeTemplateMapper templateMapper;
    @Override
    public Integer getTotalCount(Map<String, Object> map) {
        return templateMapper.getTotalCount(map);
    }

    @Override
    public List<TypeTemplate> getTypeTemplatePage(Map<String, Object> map) {
        return templateMapper.getTypeTemplatePage(map);
    }

    @Override
    public List<TypeTemplate> getTypeTemplates() {
        return templateMapper.getTypeTemplates();
    }
}
